<?php
namespace app\web\controller;

use app\web\library\WebController;

class Error extends WebController{
    public function onIndex(){
        $this->pageCache('error');
        throw new \Exception('');
    }

    public function onPage404(){
        $this->pageCache('page404');
        $this->page404();
    }

}